package com.ruoyi.applet.service.impl;

import java.util.List;

import com.ruoyi.applet.domain.UsrBrowseTime;
import com.ruoyi.applet.domain.vo.UsrBrowseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.applet.mapper.UsrBrowseMapper;
import com.ruoyi.applet.domain.UsrBrowse;
import com.ruoyi.applet.service.IUsrBrowseService;

import javax.annotation.Resource;

/**
 * 热门Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-18
 */
@Service
public class UsrBrowseServiceImpl implements IUsrBrowseService 
{
    @Resource
    private UsrBrowseMapper usrBrowseMapper;


    @Override
    public List<UsrBrowseVo> selectAllByBrowseGoodsIdUsrBrowseVoList() {
        return usrBrowseMapper.selectAllByBrowseGoodsIdUsrBrowseVoList();
    }

    @Override
    public UsrBrowseTime selectBrowseByBrowseTimeId() {
        return usrBrowseMapper.selectBrowseByBrowseTimeId();
    }

    @Override
    public Integer insertAllUsrBrowseTime() {
        return usrBrowseMapper.insertAllUsrBrowseTime();
    }

    @Override
    public Integer insertAllUsrBrowse(Long usrId, Long goodsId, Long timeId) {
        return usrBrowseMapper.insertAllUsrBrowse(usrId, goodsId, timeId);
    }

    @Override
    public UsrBrowse selectAllByBrowseGoodsIdUsrBrowse(Long usrId, Long goodsId) {
        return usrBrowseMapper.selectAllByBrowseGoodsIdUsrBrowse(usrId, goodsId);
    }

    @Override
    public Integer delByBrowseTimeId(Long timeId) {
        return usrBrowseMapper.delByBrowseTimeId(timeId);
    }

    @Override
    public UsrBrowse selectAllByBrowseGoodsId(Long goodsId) {
        return usrBrowseMapper.selectAllByBrowseGoodsId(goodsId);
    }
}
